package com.fay.corejava.chapter4;

/**
 * @Title:
 * @Description:
 * @Author Fay Wang
 * @Date 2022/2/20 22:58
 * @Version 1.0
 */
public enum Modifier {
    PUBLIC,PRIVATE;
    private int mask;

    static  {
        int maskBit = 1;
        for (Modifier m : Modifier.values()) {
            m.mask = maskBit;
            maskBit *= 2;
        }
    }
}
